
import com.farmcode.api.plugin.AuthenticationPlugin;
import com.farmcode.api.plugin.ConfigureException;
import com.farmcode.api.plugin.PluginNotFountException;
import com.farmcode.api.util.FARMCodeAPI;
import com.farmcode.server.config.InitialContext;
import java.io.IOException;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Oscar Ivan Prado
 */
public class SecurityPlugin {
    
    public static void main(String[] args) throws IOException, ConfigureException, PluginNotFountException {
        InitialContext.configure("C:/FARMCODE_HOME","/server");
        AuthenticationPlugin authenticationPlugin = FARMCodeAPI.getAuthenticationPlugin();
        boolean autheticated = authenticationPlugin.autheticate("oiprado", "Admin1234");
        System.out.println("User Authenticated: "+autheticated);
    }
    
    
}
